
import defaultsState from './data'
import {MODIFY_HEAD_INFO} from './actionType'

export default (state = defaultsState, action)=> {
    switch (action.type){
        case MODIFY_HEAD_INFO:
            let newState = JSON.parse(JSON.stringify(state))
            newState.storeInfo = action.info
            // window.sessionStorage.setItem('store',JSON.stringify(newState))
            return newState
    }
    return state
}